Uses `string-lessp' after applying lowercase."
(string-lessp (downcase (cdr acons)) (downcase (cdr bcons))))
+(defsubst which-key--group-p (description)
+ (or (string-match-p "^\\(group:\\|Prefix\\)" description)
+ (keymapp (intern description))))
+
(defun which-key-prefix-then-key-order (acons bcons)
"Order first by whether A and/or B is a prefix with no prefix
coming before a prefix. Within these categories order using
(concat (substring desc 0 which-key-max-description-length) "..")
desc))
-(defsubst which-key--group-p (description)
- (or (string-match-p "^\\(group:\\|Prefix\\)" description)
- (keymapp (intern description))))
-
(defun which-key--highlight-face (description)
"Return the highlight face for DESCRIPTION if it has one."
(let (face)